package com.fjut.controller;


import com.fjut.result.Result;
import com.fjut.service.VideoVisitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 视频来访者记录表 前端控制器
 * </p>
 *
 * @author DengTianxun
 * @since 2023-03-07
 */
@Api(tags = "视频来访接口")
@RestController
@RequestMapping("/fjut/vod/videoVisitor")
//@CrossOrigin
public class VideoVisitorController {

    @Autowired
    private VideoVisitorService videoVisitorService;

    @ApiOperation("统计来访")
    @GetMapping("findCount/{courseId}/{startDate}/{endDate}")
    public Result findCount(@PathVariable Long courseId, @PathVariable String startDate, @PathVariable String endDate){
        return Result.success(videoVisitorService.findCount(courseId,startDate,endDate));
    }


}

